package Model

type Authentication struct {
	Id         int    `json:"id" gorm:"primaryKey;type: int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID'"`
	Name       string `json:"name" gorm:"type: varchar(255) NOT NULL COMMENT '别名'"`
	Type       string `json:"type" gorm:"type: enum('password','private') NOT NULL COMMENT '登录类型'"`
	User       string `json:"user" gorm:"type: varchar(10)  NOT NULL COMMENT '用户名'"`
	Password   string `json:"password" gorm:"type: varchar(255) DEFAULT NULL  COMMENT '用户密码'"`
	PrivateKey string `json:"private_key" gorm:"type: mediumtext COMMENT '用户密钥'"`
}

func (*Authentication) TableName() string {
	return "authentications"
}
